package com.gxar.quick.ar.server.base.model.pay.vo.request;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.quick.ar.server.base.model.pay.info.WechatPayResourceInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author nice
 * @version 1.0
 * @created 2023/11/11.
 */
@Data
@ToString
@ApiModel("微信支付回调请求")
public class WechatNotifyRequest {

    @ApiModelProperty("通知的唯一ID")
    private String id;

    @ApiModelProperty("通知创建的时间")
    @JSONField(name = "create_time")
    @JsonProperty("create_time")
    private String createTime;

    @ApiModelProperty("通知的类型，支付成功通知的类型为TRANSACTION.SUCCESS")
    @JSONField(name = "event_type")
    @JsonProperty("event_type")
    private String eventType;

    @ApiModelProperty("通知的资源数据类型，支付成功通知为encrypt-resource")
    @JSONField(name = "resource_type")
    @JsonProperty("resource_type")
    private String resourceType;

    @ApiModelProperty("通知资源数据")
    private WechatPayResourceInfo resource;

    @ApiModelProperty("回调摘要")
    private String summary;
}
